#ifndef __SERVERLOGIN__
#define __SERVERLOGIN__

typedef enum{
	REGISTER = 1,
	LOGIN,
	LOGOUT
}Button;

typedef struct logTrain_s{
    int length;
    char data[1000];
}logTrain_t;


int get_salt(char *salt);
int mysql_userInfo_takeOut_name(char *recvUseName,char *tempbuf);
int mysql_userInfo_Insert_userName(char *useName);
int mysql_userInfo_Insert_salt(char *salt,char *username);
int mysql_userInfo_takeOut_salt(char *username,char *tempbuf);
int mysql_userInfo_Insert_encryted_password(char *encrypted_password,char *username);  
int mysql_userInfo_takeOut_encryted_password(char *username,char *tempbuf);
int mysql_userInfo_updata_isDeleted(char *username);
int mysql_file_Insert_userName(char *useName);
int serLog(int sockfd,char *username);
















#endif
